package com.zy.ems.common.enums;

/**
 * 支付方式
 * 
 * @author Luffy
 *
 */
public enum PayType {
    //
    cashondelivery(1, "货到付款", false),
    //
    zhifubao(2, "支付宝", false),
    //
    banktransfer(4, "银行转账", false);

    private int id;

    private String text;

    private boolean disable;

    private PayType(int id, String text, boolean disable) {
        this.id = id;
        this.text = text;
        this.disable = disable;
    }

    public static PayType[] getAllInfo() {
        return values();
    }

    public int getId() {
        return id;
    }

    public String getText() {
        return text;
    }

    public boolean isDisable() {
        return disable;
    }

}
